package chapter3.test09;

import java.io.IOException;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;

public class CalcSUmTest {
	
	@Test
	public void sumOfNumbers() throws IOException{
		Calulator calculator = new Calulator();
		int sum = calculator.calcSum(getClass().getResource("number.txt").getPath());
		assertThat(sum,is(10));
		
		
	}

}
